The CodeWarrior IDE requires the following hardware and software:
Hardware
| |
Software
| |
Other
|
The installation software on the CodeWarrior Professional Solaris CD-ROM installs all the necessary components you will need to use CodeWarrior. The installation software presents the options listed in Table 5.2.
This option
|
Installs these items on your hard disk
|
---|---|
Before installing the software on your computer, you should:
1. Read the CodeWarrior/Metrowerks Software License.
Make sure you understand and agree with the "Metrowerks Software License Agreement" before installing the software.
2. Make sure your software package is complete.
This software package should contain:
1. QuickStart Professional guide (optional on some products)
2. A CodeWarrior Professional Solaris Tools CD
sales@metrowerks.com
). See "Metrowerks Support" for more information.
3. Make sure your computer system meets the specified hardware and software requirements.
See "Solaris System Requirements".
To install CodeWarrior Professional:
1. Launch the CodeWarrior installation program.
Insert the CodeWarrior Professional Solaris CD-ROM into your CD-ROM drive.
cd /cdrom/cwpro_solaris
./install-sh
3. Select destination for the files.
4. Choose components to install.
See "Installing CodeWarrior on Solaris" for a description of components that can be installed with this installer. The installer will ask you whether you want to install each one of these components. Type "y" to install a component, or "n" to skip it.
6. After installation, read the release notes.
After installation, please read the release notes for the latest release information. For information on CodeWarrior's Y2K compliance, please read the note on "CodeWarrior Year 2000 Compliance."
Follow these steps to create a simple console application.
The New Project dialog box appears.
2. Click the expansion control next to C_C++
3. Click C to select the C stationery.
The File Save dialog box appears.
6. Use the standard navigation controls to specify and save the new project.
The File Save window closes and a new project based on the chosen stationery is created.
A new empty editor window opens.
/* helloworld.c */
#include <stdio.h>
int main(void){
printf("Hello world, this is CodeWarrior!\n");
return 0;
}
hello.c
file exists in the new project. Please ignore the existing file and proceed with the steps to create a new file with the example code.
11. Select the Sources group in the project window
The Sources group is highlighted.
12. With the editor window frontmost, choose Project`Add Window.
The HelloWorld.c
file is added to the project window.
13. Select the file named "hello.c" in the project window
The hello.c
file is highlighted.
14. Choose Project`Remove Selected Items.
The hello.c
file is removed from the project window.
The project is compiled and the executable is built.
16. Run the executable. It is named "a.out", and is in the same folder as the project.
The executable runs and the console output appears (Figure 5.1).
Congratulations! You just created a program using the CodeWarrior IDE on Solaris. For information on programming resources, please refer to "CodeWarrior Documentation."